const {baseService} =require('../../baseService')
const model =require('../../../dao/model/model')
const beansEnter=require('../../../beans/beansEnter')

/* 
记得在serviceEnter里注册一下
*/

/* 异常类 */
class quesToTitleServiceError extends Error {
    constructor(error,message='quesToTitleServiceError'){
        super()
        this.error = error
        this.message=message
    }
}


class quesToTitleService extends baseService{

    static ins = new quesToTitleService()

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new quesToTitleService()
        }
    }

    constructor(){
        super(model.modelquesToTitle,beansEnter.quesToTitle,quesToTitleServiceError)
    }
}







module.exports={
    quesToTitleService
}
